package com.yupi.springbootinit.service;

import com.yupi.springbootinit.common.BaseResponse;
import com.yupi.springbootinit.model.dto.file.UploadFileRequest;
import com.yupi.springbootinit.model.enums.FileUploadBizEnum;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

public interface FileService {
    String uploadFile(MultipartFile file, FileUploadBizEnum enumValue, Long userId);

    String uploadAnswer(@RequestPart("file") MultipartFile file,
                        UploadFileRequest uploadFileRequest, long orderId);

    BaseResponse<String> uploadQuestion(@RequestPart("file") MultipartFile multipartFile,
                                        UploadFileRequest uploadFileRequest, long orderId);
}
